/*
 * @Author: czy
 * @Date: 2021-05-21 14:28:18
 * @LastEditTime: 2021-05-21 21:47:15
 */
#include "dev/hardware/uart.h"
#include "dev/hardware/vga.h"

/**
 * @description: Get a character from the input device.
 * @param fd    Equipment number, -1 for uart, 1 for vga, 0 for uart and vga.
 * @return Character.
 */
int getc(int fd)
{
    if (fd <= 0)
    {
        return (int)uart_get_char();
    }
}